<template>
  <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
    <el-tab-pane label="手机管理" name="phone">
      <mobile-manage/>
    </el-tab-pane>
    <el-tab-pane label="邮箱管理" name="mail">
      <mail-manage/>
    </el-tab-pane>
  </el-tabs>
</template>

<script lang="ts" setup>
  import { ref } from 'vue'
  import type { TabsPaneContext } from 'element-plus'
  import MobileManage from './comps/MobileManage.vue'
  import MailManage from './comps/MailManage.vue'

  const activeName = ref('phone')

  const handleClick = (tab: TabsPaneContext, event: Event) => {
    console.log(tab, event)
  }
</script>

<style scoped>

</style>
